﻿@model ChampionFramework.Models.JogoGrupo
@{
	ViewBag.Title = "Create";
}
<h2>
	Create</h2>
@using (Html.BeginForm())
{
	@Html.ValidationSummary(true)

	<fieldset>
		<legend>Jogo de Grupo</legend>
		<div class="editor-label">
			@Html.LabelFor(model => model.GrupoId, "Grupo")
		</div>
		<div class="editor-field">
			@Html.DropDownList("GrupoId")
			@Html.ValidationMessageFor(model => model.GrupoId)
		</div>
		<div class="editor-label">
			Data
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.DataHora)
			@Html.ValidationMessageFor(model => model.DataHora)
		</div>
		<div class="editor-label">
			Time Mandante
		</div>
		<div class="editor-field">
			@Html.DropDownList("TimeMandanteId", String.Empty)
		</div>
		<div class="editor-label">
			Time Visitante
		</div>
		<div class="editor-field">
			@Html.DropDownList("TimeVisitanteId", String.Empty)
		</div>
		<p>
			<input type="submit" value="Create" />
		</p>
	</fieldset>
}
<div>
	@Html.ActionLink("Back to group", "Details", "Grupos", new { id = Convert.ToInt32(ViewBag.GrupoIdLink) }, null)
</div>
@section Scripts {
	@Scripts.Render("~/bundles/jqueryval")
}